﻿namespace System
{
    /// <summary>
    /// System.EventArgs is the base class for classes containing event data.
    /// </summary>
    /// <typeparam name="TData">The type of the data to include in the arguments.</typeparam>
    public class EventArgs<TData> : EventArgs
    {
        /// <summary>
        /// Gets or sets the data.
        /// </summary>
        /// <value>The data.</value>
        public TData Data { get; private set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="EventArgs&lt;TData&gt;"/> class.
        /// </summary>
        /// <param name="data">The data.</param>
        public EventArgs(TData data)
        {
            Data = data;
        }
    }
}
